﻿<%@ Control Language="C#" ClassName="t_post" Inherits="Wedn.Interface.Template.TemplateFun" %>

<!--正文开始-->
<div class="main">
    <%foreach (var item in Posts)
      {%>
    <ul class="post">
        <li>
            <h2>
                <a href="<%string url = GetPostUrl(item); Response.Write(url); %>" title="详细阅读 <%=item.Title %>"><%=item.Title %></a><%=IsNew(item.PubDate) %></h2>
            <div class="post_date"><span class="date_m"><%=DateFormat(item.PubDate,"MMM") %></span><span class="date_d"><%=DateFormat(item.PubDate,"dd") %></span><span class="date_y"><%=DateFormat(item.PubDate,"yyyy") %></span></div>
            <div class="article">
                <div class="thumbnail_box">
                    <div class="thumbnail">
                        <a href="<%=url %>" title="<%=item.Title %>">
                            <img src="<%=GetPostImg(item)%>" alt="<%=item.Title %>" title="<%=item.Title %>" style="opacity: 1; width: 140px; height: 100px">
                        </a>
                    </div>
                </div>
                <div class="entry_post">
                    <p><%=GetPostSummary(item.Content) %></p>
                    <div class="more"><a href="<%=url %>" title="详细阅读 <%=item.Title %>" rel="bookmark">阅读全文</a></div>
                </div>
                <div class="clear"></div>
                <div class="info">作者：<%=GetUserName(item.AutherId) %> | 分类：<%=GetPostCategory(item.Id) %> | 热度：<%=item.ViewCount %> ℃ | 标签：<%=GetPostTag(item.Id) %></div>
                <div class="comments_num"><a href="#" title="《<%=item.Title %>》上的评论"><%=GetCommentCount(item.Id) %></a></div>
            </div>
        </li>
    </ul>
    <div class="clear"></div>
    <%} %>
</div>
<!--正文结束-->
<%LoadTemplate(typeof(t_sidebar), sidebar); %>
<asp:placeholder id="sidebar" runat="server"></asp:placeholder>
